package com.firstgroup.service;

import com.firstgroup.Utils.ResponseResult;
import com.firstgroup.domain.Interviewers;
import com.firstgroup.repository.InterviewersRepository;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 创作人 王箫凯
 * Date 2021/8/10
 * Time 16:15
 *
 * @author 王箫凯
 */
public interface InterViewService {
    ResponseResult upLoad(MultipartFile file ,Integer studentId,String path);
    Interviewers findByInterviewersId(int interviewerId);
    Integer deleteById(int id);
    //批量删除
    int batchDeleteInterviewers(Integer[] id);

    List<Interviewers> findInterviewersByState(String state);
    //根据名字模糊查询
    List<Interviewers> findByNameLike(String name);

    ResponseResult updateInterviews(Integer id,String name, String qq, String studentId, String classes, String telephone, String sex);

    int updateTimeAndPlace(String state,String place,String time);

    int saveUsers(String user,int id);

    List<Interviewers> findByUserLike(String user);

    Interviewers addInterviewers(Interviewers interviewers);
/**
 * 原本想写一个二面yuanyin,淘汰原因,但是前端调用遍历评论给解决了
 */
//  Integer eliminateComment(Integer interviewersId,String state);

    /**
     * 根据年份查找
     * @param year
     * @return
     */
    ResponseResult findByYear(String year);

    /**
     * 查看重复报名的人员
     * @return
     */
    ResponseResult findRepeatResister();

    /**
     * 根据学号查找list
     * @param studentId
     * @return
     */
    ResponseResult findInterviewersByStudentId(String studentId);
}
